//
// Created by wze-zero on 2024/7/14 014.
//
#include <iostream>

using namespace std;

int main() {
    int m, n;
    cin >> m;
    cin >> n;
    int *pm, *pn, temp;
    pm = &m;
    pn = &n;
    temp = *pm;
    *pm = *pn;
    *pn = temp;
    cout << m << " " << n << endl;
    return 0;
}
